Skip to content

feat(docs): cloudhal.dev on Starlight over the repo's docs (RFC-0037 phase 1) - #35

Merged
Madraka merged 2 commits into
mainfrom
feat/docs-starlight
Oct 20, 2026
Merged

Madraka merged 2 commits into
mainfrom
feat/docs-starlight

Conversation

@Madraka

@Madraka Madraka commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Phase 1 of RFC-0037 / ADR-0039.

  • Starlight in apps/docs reads the monorepo's docs/ through a custom loader (src/lib/repo-docs.ts): H1 → title, Summary/Context → description, relative links → site paths or GitHub, generated /docs/rfcs index. 98 pages: home, /docs, /fetch, guides, contributing, all ADRs and RFCs with their status.
  • For agents: every page at <path>.md and <path>/index.md (absolute links, frontmatter with url and source), /llms.txt, /llms-full.txt, and llms.txt/llms-full.txt per section.
  • Link contract: redirects in src/lib/redirects.ts (301), /docs/deploy kept; a test fails on any internal link to a page that does not exist.
  • Pagefind search, Cloudhal accent colours, favicon.
  • Schemas and /fetch keep their URLs.

Checked locally on wrangler dev: every route, the sidebar at 1440 px and on a phone, no sideways scroll, no broken internal links. Deploy after merge.

🤖 Generated with Claude Code

Madraka and others added 2 commits October 21, 2026 01:54
…phase 1)

apps/docs is now an Astro Starlight site whose pages come from the
monorepo's docs/ through a custom content loader: titles from the H1,
descriptions from the Summary or Context, relative links rewritten to
site paths (or GitHub for files outside docs/), a generated RFC index.

The post-build step adds, from the same page list:
- every page as Markdown at <path>.md and <path>/index.md;
- /llms.txt and /llms-full.txt, plus a pair per section;
- the JSON Schemas at their $id URLs (unchanged);
- _redirects from src/lib/redirects.ts (301s; /docs/deploy kept).

Pagefind search, a sidebar with guides, contributing, ADRs and RFCs,
and tests for the loader, the link rewriting and the link contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
Rendering two widths full page took over the 20 s default on loaded
runners and failed this PR twice; the tests allow 60 and 90 s. The
production default is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka merged commit 2347b6b into main Oct 20, 2026
5 checks passed
@Madraka
Madraka deleted the feat/docs-starlight branch October 21, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant